package data;

import java.util.ArrayList;

import obj.tblVersion;

public class CurrentVersion {
	public static ArrayList<tblVersion> list = new ArrayList<tblVersion>();

	public static int getCurrentVersion(String tablename) {
		for (int i = 0; i < list.size(); i++) {
			tblVersion version = list.get(i);
			if (version.tableName.equals(tablename)) {
				return version.version;
			}
		}

		return 0; // Not exist
	}

}
